package edu.fight.dto;

import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class Result {
    private String status;
    private String msg;
    private String count;
    private Object data;

    public static Result to(ResultStatus status,String msg,String count,Object data){
        return new Result(status.getStatus(),status.getMsg()+msg,count,data);
    }


}
